Returns a specified number of contiguous elements from the start of a parallel sequence.
Namespace:
System.Linq
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function Take(Of TSource) ( _
source As ParallelQuery(Of TSource), _
count As Integer _
) As ParallelQuery(Of TSource) |
Parameters
- source
- Type: System.Linq..::.ParallelQuery<(Of <(TSource>)>)
The sequence to return elements from.
- count
- Type: System..::.Int32
The number of elements to return.
Type Parameters
- TSource
- The type of elements of source.
Return Value
A sequence that contains the specified number of elements from the start of the input sequence.
Exceptions
Exception | Condition |
---|
System..::.ArgumentNullException |
source is a null reference (Nothing in Visual Basic).
|
See Also